<script>
	$(function() {
		$( "#txtNgaysinh" ).datepicker();
	});
</script>
<script>
	$(function() {
		$( "#txtNgaythamgia" ).datepicker();
	});
</script>


<?php
if (!defined('WEB_ROOT')) {
	exit;
}

$nhomnc_id = (isset($_GET['nhomnc_id']) && $_GET['nhomnc_id'] > 0) ? $_GET['nhomnc_id'] : 0;

$groupList = buildGroupOptions($nhomnc_id);
?> 
<br />
<form action="processAuthor.php?action=addAuthor" method="post" enctype="multipart/form-data" name="frmAddAuthor" id="frmAddAuthor">
  <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
  <tr><td colspan="2" id="entryTableHeader">Thêm tác giả</td></tr>

  <tr> 
	   <td width="110" class="label">Mã tác giả</td>
	   <td class="content"> <input name="txtMatg" type="text" class="box" id="txtMatg" size="20" maxlength="20"></td>
  </tr>
  <tr> 
	   <td width="110" class="label">Họ tên tác giả</td>
	   <td class="content"> <input name="txtHotentg" type="text" class="box" id="txtHotentg" size="40" maxlength="40"></td>
  </tr>
  <tr> 
	   <td width="110" class="label">Ngày sinh</td>
	   <td class="content"><input name="txtNgaysinh" type="text" id="txtNgaysinh" size="20" maxlength="20" class="box"> </td>
  </tr>
  <tr> 
	   <td width="110" class="label">Quê quán</td>
	   <td class="content"><input name="txtQuequan" type="text" id="txtQuequan" size="40" maxlength="40" class="box"> </td>
  </tr>
  <tr> 
	   <td width="110" class="label">Mã đơn vị</td>
	   <td class="content"><input name="txtMadv" type="text" id="txtMadv" size="20" maxlength="20" class="box"> </td>
  </tr>
    <tr> 
	   <td width="110" class="label">Chức vụ</td>
	   <td class="content"><input name="txtChucvu" type="text" id="txtChucvu" size="20" maxlength="20" class="box"> </td>
  </tr>
  <tr> 
	   <td width="110" class="label">Học hàm</td>
	   <td class="content"><input name="txtHocham" type="text" id="txtHocham" size="20" maxlength="20" class="box"> </td>
  </tr>
  <tr> 
	   <td width="110" class="label">Học vị</td>
	   <td class="content"><input name="txtHocvi" type="text" id="txtHocvi" size="20" maxlength="20" class="box"> </td>
  </tr>
  <tr> 
	   <td width="110" class="label">Hình ảnh</td>
	   <td class="content"> <input name="fleImage" type="file" id="fleImage" class="box"></td>
  </tr>
  <tr> 
	   <td width="110" class="label">Nhóm nghiên cứu</td>
	   <td class="content"> <select name="cboGroup" id="cboGroup" class="box">
		<option value="" selected>-- Chọn nhóm nghiên cứu --</option>
			<?php
				echo $groupList;
			?>	 
		</select>    Ngày tham gia   <input name="txtNgaythamgia" type="text" id="txtNgaythamgia" size="15" maxlength="15" class="box"></td>
  </tr>
 </table>
 <p align="center"> 
  <input name="btnAddAuthor" type="button" id="btnAddAuthor" value="Thêm tác giả" onClick="checkAddAuthorForm();" class="box">
  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value=" Hủy " onClick="window.location.href='index.php';" class="box">  
 </p>
</form>
